﻿<UserControl x:Class="Chapters.Chapter14.CommandSourceTester"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:Chapter14="clr-namespace:FSharp.Chapter14;assembly=FSharpLibrary">
	<UserControl.CommandBindings>
		<CommandBinding Command="ApplicationCommands.Open"
						CanExecute="OnCanExecute"
						Executed="OnExecuted" />
	</UserControl.CommandBindings>
	<Grid>
		<Chapter14:SpikeControl x:Name="_spiker"
								Command="ApplicationCommands.Open"
								CommandParameter="SpikeControl">
			<Button Content="Click to Invoke"
					Click="OnButtonClick" />
		</Chapter14:SpikeControl>
	</Grid>
</UserControl>
